package com.yin.springboot.favorite.service.impl;

import com.yin.springboot.favorite.entity.TagFav;
import com.yin.springboot.favorite.mapper.TagFavMapper;
import com.yin.springboot.favorite.service.ITagFavService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author Yin
 * @since 2025-08-16
 */
@Service
public class TagFavServiceImpl extends ServiceImpl<TagFavMapper, TagFav> implements ITagFavService {

    @Override
    public void move(String oldTid, String newTid, String[] fids) {
//        try (SqlSession session = MyBatisUtil.getSession(false)) {
//            TagFavMapper tagFavMapper = session.getMapper(TagFavMapper.class);
//            tagFavMapper.updateFavs(oldTid, newTid, fids);
//            session.commit();
//        } catch (Exception e) {
//            throw new BizException("移动失败", e);
//        }
    }

}
